package com.zoo.wuhua.log;

/**
 * 
 * @author zhangli7@yusys.com.cn
 * @since 2019年1月18日 上午10:11:16
 */

public class Trace {

	private static EMPLog4j2Log log = new EMPLog4j2Log();

	static {
		log.init();
	}
	
	/**
	 * 禁用构造函数
	 */
	private Trace() {
	}

	public static void debug(String message) {
		log.log(message, 0);
	}

	public static void debug(String message, Throwable t) {
		log.log(message, 0, t);
	}

	public static void trace(String message) {
		log.log(message, 1);
	}

	public static void trace(String message, Throwable t) {
		log.log(message, 1, t);
	}

	public static void info(String message) {
		log.log(message, 2);
	}

	public static void info(String message, Throwable t) {
		log.log(message, 2, t);
	}

	public static void warn(String message) {
		log.log(message, 3);
	}

	public static void warn(String message, Throwable t) {
		log.log(message, 3, t);
	}

	public static void error(String message) {
		log.log(message, 4);
	}

	public static void error(String message, Throwable t) {
		log.log(message, 4, t);
	}
	
	public static void fatal(String message) {
        log.log(message, 5);
    }

    public static void fatal(String message, Throwable t) {
        log.log(message, 5, t);
    }

}
